package tt.com.financialmanagement.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.common.model.Order;
import tt.com.financialmanagement.service.OrderProjectService;

@RestController
@RequestMapping(value = "orders/project")
//订单项目的前端-后端/api/finance/business/xxxx
public class OrderProjectController {

    @Autowired
    private OrderProjectService orderProjectService;


    //根据组织id进行查找
    @PostMapping(value = "select/project")
    public ResponseEntity selectProject(@RequestBody Order order){
        return orderProjectService.selectProject(order);
    }

}
